ScssPhp\ScssPhp\Value\SassNumber D

Total Complexity 151
Dependencies 7
Dependents 5
Total lines 1,081
Lines of code 416
Logical lines of code 243
Comment lines 369
Methods 55
Properties 2

Methods 55

Method Rating Maintainability Complexity Lines of code
convertOrCoerceValue()
B
44 17 41
withUnits()
A
46 13 40
compatibilityException()
A
50 11 23
equals()
A
52 11 23
multiplyUnits()
S
50 7 30
canonicalizeUnitList()
S
54 6 23
buildUnitString()
S
60 5 12
getConversionFactor()
S
62 5 11
isComparableTo()
S
63 4 11
plus()
S
62 3 11
minus()
S
62 3 11
getCanonicalMultiplierForUnit()
S
66 3 8
dividedBy()
S
63 3 10
times()
S
64 3 9
hasCompatibleUnits()
S
65 3 9
assertInt()
S
68 2 7
assertNoUnits()
S
70 2 6
greaterThan()
S
69 2 6
greaterThanOrEquals()
S
69 2 6
lessThan()
S
69 2 6
create()
S
70 2 6
lessThanOrEquals()
S
69 2 6
modulo()
S
69 2 6
assertUnit()
S
70 2 6
getUnitString()
S
78 2 3
withoutSlash()
S
71 2 6
coerceUnits()
S
66 2 8
valueInRangeWithUnit()
S
66 2 7
valueInRange()
S
65 2 8
coerceValueToMatch()
S
77 1 3
getCanonicalMultiplier()
S
72 1 5
unaryPlus()
S
82 1 3
__construct()
S
77 1 4
coerceToMatch()
S
77 1 3
isInt()
S
80 1 3
getValue()
S
82 1 3
getNumeratorUnits()
S
100 1 0
getDenominatorUnits()
S
100 1 0
getAsSlash()
S
81 1 3
accept()
S
80 1 3
withValue()
S
100 1 0
withSlash()
S
100 1 0
assertNumber()
S
82 1 3
asInt()
S
80 1 3
coerceValueToUnit()
S
79 1 3
hasUnits()
S
100 1 0
hasUnit()
S
100 1 0
hasPossiblyCompatibleUnits()
S
100 1 0
compatibleWithUnit()
S
100 1 0
convert()
S
78 1 3
convertValue()
S
78 1 3
convertValueToMatch()
S
77 1 3
coerce()
S
78 1 3
coerceValue()
S
78 1 3
convertToMatch()
S
77 1 3